<?php
/**
 * GroupModel.class.php     管理组模型
 * 
 * @author                  mashanling(msl-138@163.com)
 * @date                    2012-03-29 09:46:19
 * @last modify             2012-03-29 09:46:19 by mashanling
 */

!defined('ROOT') && exit('Access Denied');

class GroupModel extends Model {
    protected $tableName = 'admin_group';
    
    function getList() {
        $data  = $this->order('group_id')->select();
        return $data;
    }
    
    function getOption() {
        $data  = $this->order('group_id')->field('group_id,group_name')->getField('group_id,group_name');
        return $data;
    }
        
    function getInfo($id) {
        return $this->find($id);
    }
}